/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.easoft.code.pos.util;

import java.text.DecimalFormat;
import java.text.NumberFormat;

/**
 *
 * @author Eliu
 */
public class DataFormatter {

    public static String formatNumber(Number n) {
        NumberFormat nf = new DecimalFormat();
        nf.setMaximumFractionDigits(2);
        return nf.format(n.doubleValue());
    }

}
